﻿namespace Demo.AttachFileService.Mongo.Domain.Entities {

    /// <summary>
    /// 集成该接口实现以 非Id 为主键的实体
    /// </summary>
    public interface IEntity {
        object[] GetKeys();
    }

    /// <summary>
    /// 集成该接口实现以 Id 为主键的实体
    /// </summary>
    /// <typeparam name="TKey"></typeparam>
    public interface IEntity<TKey> : IEntity {
        TKey Id { get; set; }
    }

}
